package com.yaowk.sfp.file.server.entity;

import com.yaowk.sfp.common.db.BaseEntity;
import com.yaowk.sfp.common.db.GeneratorNote;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 文件实体
 *
 * @author 小凯
 **/
@Entity
@Getter
@Setter
@DynamicInsert
@DynamicUpdate
public class YkFile extends BaseEntity<Long> {

    @GeneratorNote("名称")
    private String name;
    @GeneratorNote("类型")
    private String type;
    @GeneratorNote("内容")
    @Column(columnDefinition = "LONGTEXT")
    private String file;
    @GeneratorNote("文件大小")
    private Long size;
    @GeneratorNote("文件MD5值")
    private String md5;
}
